package com.user.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 系统消息表
 * </p>
 *
 * @author rick
 * @since 2022-12-13 11:23:15
 */
@Getter
@Setter
@TableName("wk_admin_message")
@ApiModel(value = "AdminMessage对象", description = "系统消息表")
public class AdminMessage implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("消息ID")
    @TableId(value = "message_id", type = IdType.AUTO)
    private Long messageId;

    @ApiModelProperty("消息标题")
    @TableField("title")
    private String title;

    @ApiModelProperty("内容")
    @TableField("content")
    private String content;

    @ApiModelProperty("消息大类 1 任务 2 日志 3 oa审批 4公告 5 日程 6 crm消息 7 知识库 8 人资")
    @TableField("label")
    private Integer label;

    @ApiModelProperty("消息类型 详见AdminMessageEnum")
    @TableField("type")
    private Integer type;

    @ApiModelProperty("关联ID")
    @TableField("type_id")
    private Integer typeId;

    @ApiModelProperty("消息创建者 0为系统")
    @TableField("create_user")
    private Long createUser;

    @ApiModelProperty("接收人")
    @TableField("recipient_user")
    private Long recipientUser;

    @ApiModelProperty("创建时间")
    @TableField("create_time")
    private LocalDateTime createTime;

    @ApiModelProperty("是否已读 0 未读 1 已读")
    @TableField("is_read")
    private Integer isRead;

    @ApiModelProperty("已读时间")
    @TableField("read_time")
    private LocalDateTime readTime;


}
